package com.tensquare.base;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

/**
 * springBoot启动类
 */
@SpringBootApplication
@EnableEurekaClient
public class LabelApplication {

    public static void main(String[] args) {
        SpringApplication.run(LabelApplication.class,args);
    }

    /**
     * 注入类
     * @return
     */
    @Bean
    public IdWorker getIdWorker(){
        return new IdWorker(1,1);
    }

}
